package kr.saeildamil.androidforstudy2.ch33;

import kr.saeildamil.androidforstudy2.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch33Main extends Activity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch33_main);
	}
	
	public void mOnClick(View v){
		Intent intent = new Intent();
		switch (v.getId()) {
		case R.id.ch33_btn01:
			intent.setClass(this, MPTest.class);
			break;
		case R.id.ch33_btn02:
			intent.setClass(this, PlayAudio.class);
			break;
		case R.id.ch33_btn03:
			intent.setClass(this, SoundPoolTest.class);
			break;
		case R.id.ch33_btn04:
			intent.setClass(this, ChangeVolume.class);
			break;
		case R.id.ch33_btn05:
			intent.setClass(this, PlayVideo.class);
			break;
		case R.id.ch33_btn06:
			intent.setClass(this, ViewVideo.class);
			break;
		case R.id.ch33_btn07:
			intent.setClass(this, RecVideo.class);
			break;
		case R.id.ch33_btn08:
			intent.setClass(this, DumpMedia.class);
			break;
		case R.id.ch33_btn09:
			intent.setClass(this, ImageViewer.class);
			break;
		}
		startActivity(intent);
	}
}
